<template>
   <div class="box">
      <button @click="show">登录</button>
      <div class="text" v-if="isShow" @click="hide">登录成功</div>
   </div>
</template>

<script>
//1.引入混入
import {toggle,a} from "./mixins.js"
export default {
  //2.注册混入
  mixins:[toggle,a]
}
</script>

<style scoped>
    .text{
        width: 200px;
        height: 200px;
        background: orange;
    }
</style>